﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SiGeSIB.GUI.Common;
using SiGeSIB.GUI.Finances;
using SiGeSIB.Data.Finances;

namespace SiGeSIB.GUI.Main
{
	public partial class UFinancesControl : ConflictableForm
	{
		public UFinancesControl()
		{
			InitializeComponent();
		}

		private void lnkAddCostCenter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Manager.Instance.CreateTab(new FEditCostCenter(EFormState.Edit, -1));
		}

		private void lnkAddIncome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Manager.Instance.CreateTab(new FEditMovimentation(EFormState.Edit, EMovimentationType.Income, -1));
		}

		private void lnkAddOutcome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Manager.Instance.CreateTab(new FEditMovimentation(EFormState.Edit, EMovimentationType.Outcome, -1));
		}

		private void lnkManageCostCenter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Manager.Instance.CreateTab(new FManageCostCenters());
		}

		private void lnkVisualizeFinances_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			Manager.Instance.CreateTab(new FManageFinances());
		}
	}
}
